package cn.iocoder.yudao.framework.common.genCode.common;


public class StringBuilderHandler {

    StringBuilder rs = new StringBuilder();

    private StringBuilderHandler StringBuilderHandler() {
        return new StringBuilderHandler();
    }


    public StringBuilderHandler builder() {
        return StringBuilderHandler();
    }

    public StringBuilderHandler ap(String line) {
        rs.append(line);
        return this;
    }

    public StringBuilderHandler apAndBl(String line) {
        rs.append(line);
        bl();
        return this;
    }

    public StringBuilderHandler bl() {
        rs.append("\n");
        return this;
    }


    public String toString() {
        return rs.toString();
    }


}
